Security Configuration
Archival utility supports basic authentication. The username and encrypted password will be configured in application.yaml file.
How to generate the encrypted password
Navigate to the archival folder and provide the values for masterPassword and secretToEncrypt
Encrypted Password
| Java |
|---|
syntax: java -jar <path-to-app-libs-dir>/helidon-config-encryption-{helidon-version}.jar aes masterPassword secretToEncryptexample: java -jar libs/helidon-config-encryption-2.5.4.jar aes myMasterPasswordForEncryption qatester3 |
Add the username and encrypted password in the application.yaml as given below
| Security Configuration |
|---|
#Security Configuration # Configuration of secured config (encryption of passwords in property files) security.config: # Set to true for production - if set to true, clear text passwords will cause failure require-encryption: false username: qatester3 # The "master" password for AES decryption. For production, set this via system property or environment variable. #aes.insecure-passphrase: "myMasterPasswordForEncryption" aes-current: #password in clear text - for non-prod environments, this is enough. password: "${CLEAR=qatester3}"# password: "${GCM=amTUkfeF5lo4xQv8R1DmHWcO+TVyYzpc5VsHySdsO6lbeYae5Y/MwXo5EywKFdHtG3pAs0M=}"
|
The username and original password i.e. qatester3/qatester3 should be passed in the rest service request headers.